package com.bigknow.appstore.web.framework.util;

/**
 * 全局静态变量
 */
public class GlobalConstant {
    public static final String PRODUCT_NAME = "fusion";
    public static final String CONSOLE_NAME = "console";
    public static final String COMBINATION_SEPARATOR = ",";

    public static final String TEMP_ROOT_PATH = System.getProperty("user.dir") + "/temp/";
    /**
     * 默认验证码参数名称
     */
    public static final String DEFAULT_CAPTCHA_PARAM = "captcha";

    /**
     * 登录次数超出allowLoginNum时，存储在session记录是否展示验证码的key默认名称
     */
    public static final String DEFAULT_SHOW_CAPTCHA_KEY_ATTRIBUTE = "showCaptcha";

    /**
     * 默认在session中存储的登录次数名称
     */
    public static final String DEFAULT_LOGIN_NUM_KEY_ATTRIBUTE = "loginNum";

    //************************************************************************************

    public static final String SUCCESS = "controller.success";

    public static final String INSERT_SUCCESS = "controller.insert.success";

    public static final String INSERT_NONE = "controller.insert.none";

    public static final String APPLY_ADD_SUCCESS = "apply.add.success";

    public static final String APPLY_ADD_FAIL = "apply.add.fail";

    public static final String UPDATE_SUCCESS = "controller.update.success";

    public static final String UPDATE_NONE = "controller.update.none";

    public static final String DELETE_SUCCESS = "controller.delete.success";

    public static final String DELETE_NONE = "controller.delete.none";

    public static final String REVOKE_SUCCESS = "controller.revoke.success";

    public static final String REVOKE_NONE = "controller.revoke.none";

    public static final String PUBLISH_SUCCESS = "app.publish.success";

    public static final String PUBLISH_NONE = "app.publish.none";

    public static final String RETIRE_SUCCESS = "app.retire.success";

    public static final String PUBLISH_APPLYED = "app.apply.success";

    public static final String RETIRE_NONE = "app.retire.none";

    public static final String SUBSCRIBER_SUCCESS = "app.subscriber.success";

    public static final String AUDIT_FINISH = "controller.audit.finish";

    public static final String USER_NOT_EXIST = "account.exist.none";

    public static final String ERROR_DELETE_ROlE_USER_EXIST = "error.delete.role.userExist";

    public static final String ERROR_DELETE_PERMISSION_ROLE_EXIST = "error.delete.permission.roleExist";

    public static final String ERROR_DELETE_PERMISSION_CHILD_EXIST = "error.delete.permission.childExist";

    //**************************************************************************************
    public static final String SECURITY_SALT = PRODUCT_NAME + ".salt";

    public static final String RETRY_CACHE_NAME = PRODUCT_NAME + "." + CONSOLE_NAME + ".timeRetry";


    //******************************错误相关的key********************************************

    public static final String KEY_EXCESSIVE_ATTEMPTS_EXCEPTION = "controller.ExcessiveAttemptsException";

    public static final String KEY_AUTHENTICATION_EXCEPTION = "controller.AuthenticationException";

    public static final String KEY_AUTHENTICATION_EXCEPTION_NOT_USE = "controller.AuthenticationException.notUse";

    public static final String KEY_UNKNOWN_AUTHENTICATION_EXCEPTION = "controller.UnknownAuthenticationException";

    public static final String KEY_SESSION_TIMEOUT_EXCEPTION = "controller.SessionTimeoutException";

    public static final String KEY_CAPTCHA_VALIDATION_EXCEPTION = "controller.CaptchaValidationException";


    //*****************************page*******************************************************
    public static final int DEFAULT_PAGE_INDEX = 1;

    public static final int DEFAULT_PAGE_SIZE = 10;

    //****************************默认值*******************************************************
    public static final String JSON_NONE_CONTENT = "";
}
